import React from 'react'
import {withRouter,} from 'react-router-dom'

class Topic extends React.Component {

    constructor(props) {
        super(props)
        this.state = {
            type: '',
            p: 0,
            title: '',
            txt: '', //内容
            img: [], //图像，二维字符串数组，{{"图片名", "图片数据"}，{"图片名", "图片数据"}...}
        }
    }

    componentDidMount() {



    }


    render() {
        return <div
            style={{
                width: '100%',
                height: 100,
            }}
            onClick={() => this.props.history.push('/topic')}
        >
            热门话题
        </div>
    }

}

export default withRouter(Topic)
